OS := $(shell uname)

CPPFLAGS += -I../brotli/dec/ -I../brotli/enc/
COMMON_FLAGS = -fno-omit-frame-pointer

ifeq ($(OS), Darwin)
  CPPFLAGS += -DOS_MACOSX
else
  COMMON_FLAGS += -fno-tree-vrp
endif

CFLAGS += $(COMMON_FLAGS)
CXXFLAGS += $(COMMON_FLAGS) -std=c++11
